package interfaceTest;

public interface Payment {
    //执行支付
    void pay(double amount);

    // 打印支付详情
    default void printPaymentDetails(double amount) {
        System.out.println("支付金额为: ¥" + amount);
    }
}
